function costchange() { var frm = document.orderform; document.orderform.after_lami.value=""; lcoating_change(); document.all.after_chk[6].checked = false; document.all.after_view[6].style.display = "none"; if(frm.qty_code.value==""){//¼ö·® À߸ø ¼±ÅÃÇßÀ»¶§ ¹«Á¶°Ç ¸Ç óÀ½ ¼ö·®À¸·Î ¹Ù²ÙÀå frm.qty_code.value = frm.qty_code.options[0].value; } //Ÿ°øÀº A4,A5,16Àý,8Àý¸¸ µÊ if (frm.size_code.value == "pssf4" || frm.size_code.value == "pss17" || frm.size_code.value == "pss21" || frm.size_code.value == "pss22"){ document.all.after_chk[0].disabled = false; } else{ frm.after_tar.value=""; document.all.after_chk[0].checked = false; document.all.after_chk[0].disabled = true; document.all.after_view[0].style.display = "none"; document.all.break_after_tar.style.display="none"; document.all.span_price_after_tar.innerHTML="0"; frm.after_price_tar.value="0"; } //¶ó¹Ì³Ø½º´Â 200g ÀÌ»ó¸¸, A3,A4,A5,16Àý,8Àý¸¸ µÊ if ((frm.size_code.value == "pssf4" || frm.size_code.value == "pss17" || frm.size_code.value == "pss21" || frm.size_code.value == "pss22" || frm.size_code.value == "pss18")&& (frm.paper_code.value == "ppk07" || frm.paper_code.value == "ppk08" || frm.paper_code.value == "ppk09" || frm.paper_code.value == "ppk16" || frm.paper_code.value == "ppk17" || frm.paper_code.value == "ppk18" || frm.paper_code.value == "ppk59" || frm.paper_code.value == "ppk59")){ document.all.after_chk[6].disabled = false; } else{ //¶ó¹Ì³Ø½º°ü·Ã frm.after_lami.value=""; document.all.after_chk[6].checked = false; document.all.after_chk[6].disabled = true; document.all.after_view[6].style.display = "none"; document.all.break_after_lcoating.style.display="none"; document.all.span_price_after_lcoating.innerHTML="0"; frm.after_price_lcoating.value="0"; } //¿¡Æø¿¥º¸,¶ó¹Ì³Ø½º´Â 200g ÀÌ»ó¸¸ µÊ 20110819 kyc if (frm.paper_code.value == "ppk07" || frm.paper_code.value == "ppk08" || frm.paper_code.value == "ppk09" || frm.paper_code.value == "ppk16" || frm.paper_code.value == "ppk17" || frm.paper_code.value == "ppk18" || frm.paper_code.value == "ppk59" || frm.paper_code.value == "ppk59"){ document.all.after_chk[2].disabled = false; // document.all.after_chk[6].disabled = false; } else{ frm.after_emb.value=""; document.all.after_chk[2].checked = false; document.all.after_chk[2].disabled = true; document.all.after_view[2].style.display = "none"; document.all.break_after_emb.style.display="none"; document.all.span_price_after_emb.innerHTML="0"; frm.after_price_emb.value="0"; //¶ó¹Ì³Ø½º°ü·Ã // frm.after_lami.value=""; // document.all.after_chk[6].checked = false; // document.all.after_chk[6].disabled = true; // document.all.after_view[6].style.display = "none"; // document.all.break_after_lcoating.style.display="none"; // document.all.span_price_after_lcoating.innerHTML="0"; //frm.after_price_lcoating.value="0"; } //ÄÚÆÃÀº 120g ÀÌÇÏ´Â ¾ÈµÊ 20110819 kyc if (frm.paper_code.value == "ppk03" || frm.paper_code.value == "ppk04" || frm.paper_code.value == "ppk12" || frm.paper_code.value == "ppk13" || frm.paper_code.value == "ppk19" || frm.paper_code.value == "ppk21" || frm.paper_code.value == "ppk22"){ frm.after_coating.value=""; document.all.after_chk[3].checked = false; document.all.after_chk[3].disabled = true; document.all.after_view[3].style.display = "none"; document.all.break_after_coating.style.display="none"; document.all.span_price_after_coating.innerHTML="0"; frm.coat_price_view.value="0"; } else{ document.all.after_chk[3].disabled = false; } //ºÎºÐÄÚÆÃ,¿À½Ã´Â 150g ÀÌ»ó¸¸ µÊ 20110819 kyc if (frm.paper_code.value == "ppk03" || frm.paper_code.value == "ppk04" || frm.paper_code.value == "ppk12" || frm.paper_code.value == "ppk13" || frm.paper_code.value == "ppk19" || frm.paper_code.value == "ppk21" || frm.paper_code.value == "ppk22"){ frm.after_pcoating.value=""; document.all.after_chk[7].checked = false; document.all.after_chk[7].disabled = true; document.all.after_view[7].style.display = "none"; document.all.break_after_pcoating.style.display="none"; document.all.span_price_after_pcoating.innerHTML="0"; frm.after_price_pcoating.value="0"; //¿À½Ã°ü·Ã// frm.after_price_osi.value="0"; frm.after_osi.value=""; frm.after_osi.disabled=true; document.all.break_after_osi.style.display="none"; document.all.span_price_after_osi.innerHTML="0"; document.all.span_price_after_sew_total.innerHTML = eval(frm.after_price_osi.value) + eval(frm.after_price_mis.value); } else{ document.all.after_chk[7].disabled = false; frm.after_osi.disabled=false; } //Á¢Áö´Â 260, 300g´Â ¾ÈµÊ 20110819 kyc if (frm.paper_code.value == "ppk09" || frm.paper_code.value == "ppk18" || frm.paper_code.value == "ppk60" ){ frm.after_jub_print.value=""; document.all.after_chk[4].checked = false; document.all.after_chk[4].disabled = true; document.all.after_view[4].style.display = "none"; document.all.break_after_jub_print.style.display="none"; document.all.span_price_after_jub_print.innerHTML="0"; frm.after_price_jub.value="0"; } else{ document.all.after_chk[4].disabled = false; } memo1_change(); var kind_code =document.orderform.kind_code; var paper_code =document.orderform.paper_code; var color_code =document.orderform.color_code; var coating_code =document.orderform.coating_code; var size_code =document.orderform.size_code; var qty_code =document.orderform.qty_code; var price =document.orderform.pay; var subtitle = document.orderform.product_num.value; var paper_num = 0; if(size_code.value == "pss17"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 213mm x 300mm" paper_num = 4000; } else if(size_code.value == "pssf4"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 150mm x 213mm" paper_num = 8000; } else if(size_code.value == "pss18"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 300mm x 423mm" paper_num = 2000; } else if(size_code.value == "pss19"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 423mm x 597mm" paper_num = 1000; } else if(size_code.value == "psse9"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 567mm x 844mm" paper_num = 500; } else if(size_code.value == "pss21"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 185mm x 260mm" paper_num = 8000; } else if(size_code.value == "pss22"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 260mm x 370mm" paper_num = 4000; } else if(size_code.value == "pss23"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 370mm x 520mm" paper_num = 2000; } else if(size_code.value == "pss24"){ document.getElementById("size_span").innerHTML = "ÀÛ¾÷»çÀÌÁî : 520mm x 740mm" paper_num = 1000; } //´çÀÏÆÇ if(document.orderform.now_date[0].checked == true && (paper_code.value == "ppk19" || paper_code.value == "ppk21" || paper_code.value == "ppk22" || paper_code.value == "ppk23" || paper_code.value == "ppk24" || paper_code.value == "ppk59" || paper_code.value == "ppk60")){ if(document.orderform.est_type.value == "Y"){ document.orderform.now_date[1].checked = true; } else{ document.orderform.now_date[1].checked = true; alert('¸ðÁ¶Áö´Â ´çÀÏÆÇÀÌ ºÒ°¡ÇÕ´Ï´Ù.'); } } if (qty_code.value < 100){ //´çÀÏÆÇ if(document.orderform.now_date[0].checked == true){ if(document.orderform.est_type.value == "Y"){ document.orderform.now_date[1].checked = true; } else{ document.orderform.now_date[1].checked = true; alert('µ¶ÆÇÀü´ÜÁöÀÇ ´çÀÏÆÇÀº ¹Ý¿¬±îÁö¸¸ °¡´ÉÇÕ´Ï´Ù.'); } } document.getElementById("number_span").innerHTML = "¸Å¼ö : "+comma(eval(document.orderform.qty_code.value)*eval(paper_num))+"¸Å"; } else{ //´çÀÏÆÇ if(document.orderform.now_date[0].checked == true && qty_code.value > (paper_num/2)){ if(document.orderform.est_type.value == "Y"){ document.orderform.now_date[1].checked = true; } else{ document.orderform.now_date[1].checked = true; alert('µ¶ÆÇÀü´ÜÁöÀÇ ´çÀÏÆÇÀº ¹Ý¿¬±îÁö¸¸ °¡´ÉÇÕ´Ï´Ù.'); } } document.getElementById("number_span").innerHTML = "¸Å¼ö : "+comma(document.orderform.qty_code.value)+"¸Å"; } document.orderform.real_paper_number.value=eval(document.orderform.qty_code.value)*eval(paper_num); } function memo1_change() { var kind_code =document.orderform.kind_code; var paper_code =document.orderform.paper_code; var color_code =document.orderform.color_code; var size_code =document.orderform.size_code; var qty_code =document.orderform.qty_code; var price =document.orderform.pay; var subtitle = document.orderform.product_num; document.all.memo1.innerHTML = paper_code.options[paper_code.selectedIndex].innerText + " / " + color_code.options[color_code.selectedIndex].innerText + " / " + size_code.options[size_code.selectedIndex].innerText+" / "+ qty_code.options[qty_code.selectedIndex].innerText; } function price01_change() { var frm = document.orderform; //ÈÄ°¡°ø_¿À½Ã if(frm.after_osi.value!=""){ after_osi_cost(); } //ÈÄ°¡°ø_¹Ì½Ì if(frm.after_mis.value!=""){ after_mis_cost(); } //ÈÄ°¡°ø_Ÿ°ø if(frm.after_tar.value!=""){ after_tar_cost(); } //ÈÄ°¡°ø_Á¢Áö if(frm.after_jub_print.value!=""){ after_jub_print_cost(); } //ÈÄ°¡°ø_¿¥º¸ if(frm.after_emb.value!=""){ after_emb_cost(); } //ÈÄ°¡°ø_Á¦º» // if(frm.after_jeb_print.value!=""){ // after_jeb_print_cost(); // } //ÈÄ°¡°ø_ÄÚÆà if(frm.after_coating.value!=""){ coating_cost(); } //ÈÄ°¡°ø_¶ó¹Ì³Ø½º if(frm.after_lami.value!=""){ after_lcoating_cost(); } //ÈÄ°¡°ø_³Ñ¹ö¸µ if(frm.after_num.value!=""){ after_num_cost(); } //ÈÄ°¡°ø_ºÎºÐÄÚÆà if(frm.after_pcoating.value!=""){ after_pcoating_cost(); } //ÈÄ°¡°ø_º°Àç´Ü if(frm.after_etc_cut.value!=""){ after_etc_cut_cost(); } //ÈÄ°¡°ø_µµ¹«¼Û if(frm.after_tom.value!=""){ after_tom_cost(); } //ÈÄ°¡°øÃÑÇÕ total_after(); //Àç´Üºñ´Â ¼­ºñ½ºÂ÷¿ø¿¡¼­ »©¶ó //total_price =eval(frm.real_paper_price.value)+eval(frm.output_price_view.value)+eval(frm.print_price_view.value)+eval(frm.cut_price_view.value); total_price =eval(frm.real_paper_price.value)+eval(frm.output_price_view.value)+eval(frm.print_price_view.value); total_price = Math.floor(total_price/100)*100; //¸¶Áø. // if (frm.color_code.value=="cld04"){ // total_price = total_price *1.2; // } // else{ // total_price = total_price *1.1; // } // total_price = Math.floor(total_price/100)*100; //20110818 ¹«Á¶°Ç 20% // total_price = total_price *1.2; // total_price = Math.floor(total_price/100)*100; //20110819 Á¾·ù,¹«°Ôº°·Î ¸¶Áø ´Ù¸£°Ô // if (frm.paper_code.value == "ppk08" || frm.paper_code.value == "ppk09" || frm.paper_code.value == "ppk17" || frm.paper_code.value == "ppk18" || frm.paper_code.value == "ppk59" || frm.paper_code.value == "ppk59"){ // total_price = total_price *1.2; // } // else{ // total_price = total_price *1.15; // } // total_price = Math.floor(total_price/100)*100; //20111102 »çÀÌÁî Å«°ÍÀº ÆǺñ Ãß°¡ var pan_price = 0; if (frm.size_code.value == "pss19"){ //A2 if (frm.color_code.value == "cld04"){ pan_price = 0; } else{ pan_price = 0; } } else if (frm.size_code.value == "psse9"){ //A1 if (frm.color_code.value == "cld04"){ pan_price = 0; } else{ pan_price = 32000; } } else if (frm.size_code.value == "pss23"){ // 4Àý if (frm.color_code.value == "cld04"){ pan_price = 0; } else{ pan_price = 0; } } else if (frm.size_code.value == "pss24"){ //2Àý if (frm.color_code.value == "cld04"){ pan_price = 0; } else{ pan_price = 32000; } } pan_price = eval(pan_price) * eval(frm.product_num.value); total_price = total_price + pan_price; total_price = Math.floor(total_price/100)*100; frm.pay.value = total_price; var price = frm.pay; var after_price = frm.after_total_price_plus.value; var price_01 = frm.price_01; //ÈÄ°¡°øÀÌ ÀÖÀ¸¸é¼­ ´çÀÏÆÇÁÖ¹®Àº ºÒ°¡ 2011-12-01 kyc if(document.orderform.now_date[0].checked == true && after_price!="0"){ alert("ÈÄ°¡°øÀÌ ÀÖÀ» °æ¿ì ´çÀÏÆÇÁÖ¹®À» ÇÏ½Ç ¼ö ¾ø½À´Ï´Ù."); document.orderform.now_date[1].checked = true; } price_01.value = Math.round(price.value); document.all.span_price.innerHTML = comma(Math.round(price.value)); document.all.break_pro_price_plus.innerHTML = comma(Math.round(price.value)); //Á¦Ç° ÃÑ¾× document.all.span_total_estimate_prie.innerHTML = comma(Math.round(eval(price.value)+eval(after_price))); //Á¦Ç° + ÈÄ°¡°ø ÃÑ¾× //alert(frm.after_total_price.value); //ºÎ°¡¼¼ tax_price = (eval(price.value)+eval(after_price))/10 frm.tax_price.value = tax_price; document.all.span_tax_price.innerHTML = comma(tax_price); //°ßÀûÃÑ¾× estimate_price = eval(price.value)+eval(after_price)+eval(tax_price) frm.estimate_price_end.value = estimate_price; document.all.span_estimate_price_end.innerHTML = comma(estimate_price); }